package test1;

import java.util.Date;

public class Test1 {
	public static void fn1() {

	}

	public void fn2() {

	}

	public static void main(String[] args) throws Exception {
		
		
		Test1.fn1();
		new Test1().fn2();
		

		String ss1 = "\\d*";
		String ss2 = new String("22323");
		String ss41=ss2+"abc";
		
		StringBuilder sb=new StringBuilder("abc");
		
		sb.append("bcd");
		sb.append("cde");
		System.out.println(sb.toString());
		
		String ss3 = "asf21sfd2dfdf4";
		System.out.println(ss2.matches(ss1));
		String ss4 = ss3.replaceAll("\\d+", "-");
		System.out.println(ss4);

		String as = ss3.split("\\d+")[1];
		

		byte[] buf = new byte[] { 45, 78 };

		String s1 = new String(buf, "UTF-16LE");
		System.out.println(s1);
		String s = new String("中");
		byte[] bs = s.getBytes("UTF-16LE");
		for (byte b : bs) {
			System.out.println(b);
		}
		// char c=s.charAt(1);
		// System.out.println(c);
		//
		//
		// Object o=new Date();
		// System.out.println(o.getClass().getName());
		//
		// User u=new User();
		// u.setAge(100);
		// u.setName("john");
		// User u2=new User();
		// u2.setAge(101);
		// u2.setName("john");
		// System.out.println(u==u2);
		// System.out.println(u.equals(u2));
		//
		//
		//
		// try {
		// User u1= (User)u.clone();
		// u1.setAge(200);
		// System.out.println(u.getAge());
		// } catch (CloneNotSupportedException e) {
		// // TODO Auto-generated catch block
		// e.printStackTrace();
		// }
		//

	}

}
